package com.cap.bts.crmdp.dealer.masterdata.dao;

import java.sql.SQLException;
import java.util.List;

import com.cap.bts.crmdp.dealer.masterdata.domain.MarsDataConversionMember;
import com.cap.bts.crmdp.dealer.masterdata.dto.DataConvertStoredProcedure;
import com.cap.bts.crmdp.dealer.masterdata.dto.MarsDataConversionMemberDto;
import com.cap.bts.crmdp.dealer.masterdata.dto.MarsDataConversionPortfolioDto;
import com.cap.bts.framework.common.dao.IBaseDao;
import com.cap.bts.framework.common.exception.AppException;

public interface IMarsDataConversionMemberDao extends IBaseDao<MarsDataConversionMember, Long> {
	
	public List<String> checkStoreCodeByStoreCode(String dearNumber, boolean memberFlag, boolean portfolioFlag);
	
	public DataConvertStoredProcedure callPrcDataConversion(Integer dealerNum, String dataType) throws SQLException;
	
	public void batchInsertMember(String batchId, List<MarsDataConversionMemberDto> dataList) throws AppException;
	
	public void batchInsertPortfolio(String batchId, List<MarsDataConversionPortfolioDto> dataList) throws AppException;
}
